package com.stj.service;

import com.stj.dao.BlogDao;
import com.stj.entity.Blog;
import com.stj.entity.comment;

import java.util.List;

public class BlogService {
    BlogDao dao = new BlogDao();

    public List getBlogList() {return dao.getBlogList(); }

    public List blogTypeCountList() {return dao.blogTypeCountList();}

    public List linkList() {
        return dao.linkList();
    }

    public Blog getBlogByIdList(String id) {
        return dao.getBlogByIdList(id);
    }

    public List getBlogByNameList(String q) {
        return dao.getBlogByNameList(q);
    }

    public int addBlog(Blog blog) {
        return dao.addBlog(blog);
    }

    public int getcomment(comment comment) {
        return dao.addComment(comment);
    }

    public List selectComment(int id) {return dao.selectComment(id); }

    public List getBlogTypeList(int id) {return dao.getBlogTypeList(id);}

    public void addReplyHit(int blogId, int replyHit) { dao.addReplyHit(blogId,replyHit); }
}


